package com.tywj.buscustomerapp.view.item;

import android.content.Intent;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.LinearLayout;

import com.tywj.buscustomerapp.R;
import com.tywj.buscustomerapp.utils.myadapter.item.AdapterItem;
import com.tywj.buscustomerapp.view.activity.tour.GoodsInfoActivity;

public class ScenicTicketItem implements AdapterItem<String>{
    private LinearLayout click;
    @Override
    public int getLayoutResId() {
        return R.layout.item_scenic_ticket_layout;
    }

    @Override
    public void bindViews(@NonNull View root) {
        click = root.findViewById(R.id.click);
    }

    @Override
    public void setViews() {

    }

    @Override
    public void handleData(String s, int position) {
        click.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                v.getContext().startActivity(new Intent(v.getContext(),GoodsInfoActivity.class));
            }
        });
    }
}
